wayland: prefer subsurface when possible
authorOlivier Fourdan <ofourdan@redhat.com>
Mon, 21 Dec 2015 13:35:53 +0000 (14:35 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Fri, 8 Jan 2016 09:33:26 +0000 (10:33 +0100)
commit28f011eb055673d8944cd6e012bc5d84bae41a26
treef0e0e977653e30763e19471920f7b656b3b0e15a
parentd85b3fc60dcf09d4703b30bef676af93ef6ed6cd
wayland: prefer subsurface when possible

Quite a few applications use GTK_WINDOW_POPUP to create various
temporary windows and place then on screen. That works fine on X11 but
on Wayland there is no global coordinate system for regular surfaces.

If the application is using a gdk temp window and set a parent with
gtk_window_transient_for(), the gdk wayland backend has all it needs to
create a subsurface that can be placed at will by the application.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759738
gdk/wayland/gdkwindow-wayland.c
gtk/gtkwindow.c
tests/Makefile.am
tests/testpopup.c [new file with mode: 0644]